﻿using PARK.Common.Const;
using SqlSugar;
using System;

namespace PARK.Welfare.Entitys
{
    /// <summary>
    /// 福利清零
    /// </summary>
    [SugarTable("welfare_clear")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class WelfareClearEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "BillId", IsPrimaryKey = true)]
        public string BillId { get; set; }

        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnName = "BillCode")]
        public string BillCode { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        [SugarColumn(ColumnName = "BillDate")]
        public DateTime? BillDate { get; set; }

        /// <summary>
        /// 清零截止时间
        /// </summary>
        [SugarColumn(ColumnName = "ClearDate")]
        public DateTime? ClearDate { get; set; }

        /// <summary>
        /// 清除福利总额
        /// </summary>
        [SugarColumn(ColumnName = "Wagetotal")]
        public decimal Wagetotal { get; set; }

        /// <summary>
        /// 清除福利总条数
        /// </summary>
        [SugarColumn(ColumnName = "WageRows")]
        public int? WageRows { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [SugarColumn(ColumnName = "Summary")]
        public string Summary { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        [SugarColumn(ColumnName = "CreateUser")]
        public string CreateUser { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(ColumnName = "CreateUserName")]
        public string CreateUserName { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 确认状态 0未确认 1已确认
        /// </summary>
        [SugarColumn(ColumnName = "IsAudit")]
        public int? IsAudit { get; set; }

        /// <summary>
        /// 确认人Id
        /// </summary>
        [SugarColumn(ColumnName = "AuditUser")]
        public string AuditUser { get; set; }

        /// <summary>
        /// 确认人姓名
        /// </summary>
        [SugarColumn(ColumnName = "AuditUserName")]
        public string AuditUserName { get; set; }

        /// <summary>
        /// 确认时间
        /// </summary>
        [SugarColumn(ColumnName = "AuditDate")]
        public DateTime? AuditDate { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        [SugarColumn(ColumnName = "DbDate")]
        public DateTime? DbDate { get; set; }

        /// <summary>
        /// 所属公司Id
        /// </summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public string CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [SugarColumn(ColumnName = "CompanyName")]
        public string CompanyName { get; set; }

    }
}